import Vue from "vue";
import App from "./App.vue";
import router from "./router";

// 引入全局css控制样式
import "./assets/css/global.css";

// 引入和注册element-ui组件库
import ElementUI from "element-ui";
Vue.use(ElementUI);

// 引入字体库
import "./assets/fonts/iconfont.css";

// 把面包屑组件注册给Vue实例
import myBread from "./components/myBreadCrumb";
Vue.component("my-bread", myBread);

// 引入axios
import axios from "./http";
// 配置成为Vue成员
Vue.prototype.$http = axios;

Vue.config.productionTip = false;

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
